<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
<div id="formBox" class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-manager-add">
        <div class="form-group">
            <label class="col-sm-3 control-label">用户账号：</label>
            <div class="col-sm-8">
                <input id="userLoginName" name="userLoginName" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">实名认证状态：</label>
            <div class="col-sm-8">
                <select name="certState" class="form-control m-b" th:with="type=${@dict.getType('pay_user_cert_state')}">
                    <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                </select>
            </div>
        </div>
        <!--<div class="form-group">
            <label class="col-sm-3 control-label">管理权限：</label>
            <div class="col-sm-8">
                <input id="roleId" name="roleId" class="form-control" type="text">
            </div>
        </div>-->
        <div class="form-group">
            <label class="col-sm-3 control-label">登录密码：</label>
            <div class="col-sm-8">
                <input id="userLoginPass" name="userLoginPass" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<script th:src="@{/js/vue.min.js}"></script>
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/ajaxupload.js}"></script>
<div th:include="include::footer"></div>
<script type="text/javascript">
    var prefix = ctx + "manager/user";
    var roleid = "2";

    function submitHandler() {
        if ($.validate.form()) {
            var params = $('#form-manager-add').serialize();
            $.operate.save(prefix + "/add/" + roleid, params);
        }
    }
</script>
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/ajaxupload.js}"></script>
<div th:include="include::footer"></div>
</body>
</html>
